package models

import "time"

// 成绩通知
type GradeNotice struct {
	Id               int64     `orm:"description(自增主键)"`
	User             *User     `orm:"rel(fk);null;default(0);description(发布人id)"`
	Student          *Student  `orm:"rel(fk);null;default(0);description(学生id)"`
	TestName         string    `orm:"description(考试名称)"`
	ChineseGrade     float64   `orm:"digits(12);decimals(2);description(语文分数)"`
	MathematicsGrade float64   `orm:"digits(12);decimals(2);description(数学分数)"`
	EnglishGrade     float64   `orm:"digits(12);decimals(2);description(英语分数)"`
	ChemistryGrade   float64   `orm:"digits(12);decimals(2);description(化学分数)"`
	PhysicsGrade     float64   `orm:"digits(12);decimals(2);description(物理分数)"`
	GeographyGrade   float64   `orm:"digits(12);decimals(2);description(地理分数)"`
	HistoryGrade     float64   `orm:"digits(12);decimals(2);description(历史分数)"`
	BiologyGrade     float64   `orm:"digits(12);decimals(2);description(生物分数)"`
	PoliticsGrade    float64   `orm:"digits(12);decimals(2);description(政治分数)"`
	TotalGrade       float64   `orm:"-"`
	Created          time.Time `orm:"auto_now_add;type(datetime);description(发布时间)"`
	CreatedShow      string    `orm:"-"`
	CreatedDateShow  string    `orm:"-"`
	StudentName      string    `orm:"-"`
}
